package com.swak.converter;

import org.springframework.format.support.DefaultFormattingConversionService;

/**
 * 类型转换服务
 * 
 * @author 618lf
 */
public class CoreConversionService extends DefaultFormattingConversionService {

	private static CoreConversionService Context = new CoreConversionService();

	public static CoreConversionService getContext() {
		return Context;
	}

	private CoreConversionService() {
		this.addConverter(new DateConverter());
		this.addConverter(new LocalDateTimeConverter());
		this.addConverter(new StringEscapeConverter());
	}
}